package com.lovo.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lovo.project.bean.RoleBean;
import com.lovo.project.bean.UserBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoleMapper extends BaseMapper<RoleBean> {
   List<RoleBean> selectUserRole(Integer userId);

    void deleteUserRole(Integer userId);

    void insertUserRole(@Param("userId") Integer userId, @Param("roleIds") List<Integer> roleIds);


}
